package houserules;

import java.io.Serializable;

import logic.moves.GameMove;

public class ArmyExchangeRule implements HouseRuleInterface,Serializable {

	// =========== Fields ============
	private static final long serialVersionUID = 1L;
	private int num_of_changes;
	private int def_val = 1;

	// ======== Constructors =============
	public ArmyExchangeRule(int num_of_changes){
		this.num_of_changes = num_of_changes;
	}
	public ArmyExchangeRule(){
		this.num_of_changes = def_val;
	}
	
	// ========== Functions ==============
	public boolean isDefault() {
		return num_of_changes == def_val;
	}
	
	public int restoreDefault() {
		return num_of_changes = def_val;
	}
	
	/**
	 * 
	 * @return number of allowed changes for one move
	 */
	public int getNumberOfChanges(){
		return num_of_changes;
	}
	public boolean isLegal(GameMove gameMove) {
		// TODO Auto-generated method stub
		return true;
	}

}
